package com.common.www.bean.entity.project;


import org.springframework.boot.base.jpa.domain.annotations.QueryCacheable;
import org.springframework.boot.base.jpa.domain.entity.NumberIdentityEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 项目版本
 *
 * @param
 * @author andyliu
 * @date 5/28/2018 4:23 PM
 * @return
 */
@DynamicUpdate(true)
@DynamicInsert(true)
@Entity
@Getter
@Setter
@QueryCacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table()
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "项目版本参数")
public class ProjectVersion extends NumberIdentityEntity {
    /**
     * 对应项目版本
     */
    @JsonIgnoreProperties(value = {""})
    @ManyToOne()
    private Project project;
    /**
     * 项目版本：1.招标版  2.拟定标版  3.定标版（落地版）
     */
    @Column(length = 11)
    private Integer version;
    /**
     * 高压进线是否为双电源
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String gyjxWhetherPdf;
    /**
     * 变压器形式
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String byqXsPdf;
    /**
     * 配电房出线形式
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String pdfcxXsPdf;
    /**
     * 非居计量形式
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String fjjlXsPdf;
    /**
     * 变压器报装容量
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String byqbzrlPdf;
    /**
     * 居变最大容量
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String jbzdrlPdf;
    /**
     * 非居变最大容量
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String fjbzdrlPdf;
    ///////地方做法--充电桩
    /**
     * 实配比例
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String spblCdz;
    /**
     * 建设深度
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String jssdCdz;
    /**
     * 接线位置
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String jxwzCdz;
    ///////地方做法--住宅
    /**
     * 执行的电力文件
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String dlwjZz;
    /**
     * 电缆材质
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String dlczZz;
    /**
     * 电缆连接方式
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String dlljfsZz;
    ///////地方做法--商业
    /**
     * 商业变压器是否独立
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String sybyqWhetherSy;
    /**
     * 计量形式
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String jlXsSy;
    ///////地方做法--其他
    /**
     * 其他电气重点内容
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zynrQt;


    //////重点指标
    /**
     * 地上：住宅干线电缆+表箱成本指标（元/㎡）
     */
    @Column(length = 11)
    private Double bxCbZb;
    /**
     * 地下：住宅干线电缆+变压器成本指标（元/㎡）
     */
    @Column(length = 11)
    private Double byqCbZb;
    /**
     * 项目变压器整体利用率
     */
    @Column(length = 11)
    private Double byqlyl;
    //1：居变（需要20台）-T代替-例如：T1、T2、T3……；非居（6台）-ZT代替；商业（4台）-ST代替
    /**
     * 居变 TL1（一期）
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t1;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT1;
    /**
     * 居变 TL2（一期）
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t2;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT2;
    /**
     * 居变...（一期）...
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t3;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT3;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t4;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT4;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t5;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT5;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t6;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT6;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t7;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT7;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t8;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT8;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t9;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT9;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t10;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT10;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t11;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT11;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t12;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT12;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t13;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT13;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t14;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT14;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t15;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT15;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t16;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT16;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t17;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT17;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t18;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT18;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t19;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT19;
    /**
     * 居变
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String t20;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeT20;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT1;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt1;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT2;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt2;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT3;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt3;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT4;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt4;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT5;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt5;
    /**
     * 非居
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String zT6;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeZt6;
    /**
     * 商业(ST)
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String sT1;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeSt1;
    /**
     * 商业
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String sT2;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeSt2;
    /**
     * 商业
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String sT3;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeSt3;
    /**
     * 商业
     */
    @Column(length = 1024, columnDefinition = "TEXT")
    private String sT4;
    @Column(length = 1024, columnDefinition = "TEXT")
    private String describeSt4;
    /**
     * 居住负荷指标（VA/㎡）
     */
    @Column(length = 11)
    private Double jzfhzb;
    /**
     * 商业负荷指标（VA/㎡）
     */
    @Column(length = 11)
    private Double syfhzb;
    /**
     * 非居负荷指标（VA/㎡）
     */
    @Column(length = 11)
    private Double fjfhzb;

    ///////方案对比分析--外线
    /**
     * 电缆材质
     */
    @Column(length = 256)
    private String dlczWx;
    /**
     * 电缆截面（mm²）
     */
    @Column(length = 256)
    private String dljmWx;
    /**
     * 专线/公共搭接
     */
    @Column(length = 256)
    private String zgjdWx;
    /**
     * 其他（如：公共环网柜建设等）
     */
    @Column(length = 256)
    private String qtWx;
    ///////方案对比分析--内线
    /**
     * 高配室/开闭所柜体形式
     */
    @Column(length = 256)
    private String gkXsNx;
    /**
     * 高配室/开闭所柜体数量
     */
    @Column(length = 256)
    private String gkslNx;
    /**
     * 高配室/开闭所联络形式
     */
    @Column(length = 256)
    private String gkllXsNx;
    /**
     * 区内高压配电形式
     */
    @Column(length = 256)
    private String qngypdXsNx;
    /**
     * 区内高压电缆（mm²）
     */
    @Column(length = 256)
    private String qngydlNx;
    /**
     * 变压器装机容量（kVA）
     */
    @Column(length = 256)
    private String byqzjrlNx;
    /**
     * 变压器材质及节能等级
     */
    @Column(length = 256)
    private String czdjNx;
    /**
     * 低压柜柜体形式
     */
    @Column(length = 256)
    private String dyggtXsNx;
    /**
     * 低压柜柜体数量
     */
    @Column(length = 256)
    private String dyggtslNx;
    /**
     * 低压柜柜体是否联络
     */
    @Column(length = 256)
    private String dyggtWhetherNx;
    /**
     * 柜体铜排断面（mm²）
     */
    @Column(length = 256)
    private String gttpdmNx;
    /**
     * 低压干线电缆
     */
    @Column(length = 256)
    private String dygxdlNx;
    /**
     * 车充--电缆部分
     */
    @Column(length = 256)
    private String ccDlNx;
    /**
     * 车充--箱体部分
     */
    @Column(length = 256)
    private String ccXtNx;
    /**
     * 车充--桥架部分
     */
    @Column(length = 256)
    private String ccQjNx;
    /**
     * 发电机配电干线
     */
    @Column(length = 128)
    private String fdjpdgxNx;
    /**
     * 其他（如：直流屏、DTU、温控、湿控等）
     */
    @Column(length = 256)
    private String qtNx;



}